package com.atguigu.edu.service;

import com.atguigu.edu.bean.UserChangeCtPerType;
import com.atguigu.edu.bean.UserPageCt;
import com.atguigu.edu.mapper.UserStatsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserStatsService{
    @Autowired
    private UserStatsMapper userStatsMapper;

    @Override
    public List<UserChangeCtPerType> getUserCt(Integer date) {
        return userStatsMapper.selectUserCt(date);
    }

    @Override
    public List<UserPageCt> getUserAnalyze(Integer date) {
        return userStatsMapper.selectUserAnalyze(date);
    }
}
